<%
'*****************************************************
'Description: cookies检查功能页
'Copyright:Copyright(c)2012
'Company:204studio
'@author:klarkyang
'@version:1.0
'******************************************************
%>
<%
'==================================================================================
'函数功能:检查用户是否已登录
'函数返回值:
'参数说明:deep（0代表根目录，1代表一级目录，依此类推）
'Author:klarkyang
'==================================================================================
sub checkCookies(byval deep)
	'判断用户名是否为空
	if (session("username")="" or isNull(session("username"))) then
		  response.write "<script language=javascript>"
		  response.write "alert('登录已超时或您未登录，请重新登陆！');"
		  if deep=0 then
			  response.write "window.open('index.asp','_parent');"
		  elseif deep=1 then
			  response.write "window.open('../index.asp','_parent');"
		  elseif deep=2 then
			  response.write "window.open('../../index.asp','_parent');"
		  end if
		  response.write "</script>"
	end if
end sub
%>